package service;

import enmu.OrderStatus;
import model.Order;

public interface IOrderRepositoryService {
    /**
     * 保存订单
     *
     * @param order 订单
     * @return
     */
    Order save(Order order);

    /**
     * 查询订单
     * @param orderId 订单id
     * @return
     */
    Order findById(String orderId);

    /**
     * 更新订单
     * @param orderId 订单id
     * @param status 订单状态
     */
    void updateStatus(String orderId, OrderStatus status);
}
